package global

type NacosConf struct {
	Host      string `yaml:"Host"`
	Port      int    `yaml:"Port"`
	DataId    string `yaml:"DataId"`
	Group     string `yaml:"Group"`
	NacosName string `yaml:"NacosName"`
}
type ServerConf struct {
	ConsulConf *ConsulConf `yaml:"ConsulConf"`
	MysqlConf  *MysqlConf  `yaml:"MysqlConf"`
	RedisConf  *RedisConf  `yaml:"RedisConf"`
	EsConf     *EsConf     `yaml:"EsConf"`
	BookConf   *BookConf   `yaml:"BookConf"`
}
type ConsulConf struct {
	Id   string   `json:"Id" yaml:"Id"`
	Name string   `json:"Name" yaml:"Name"`
	Tags []string `json:"Tags" yaml:"Tags"`
}
type BookConf struct {
	Host string `yaml:"Host"`
	Port int    `yaml:"Port"`
}
type MysqlConf struct {
	Username string `yaml:"Username"`
	Password string `yaml:"Password"`
	Host     string `yaml:"Host"`
	Port     int    `yaml:"Port"`
	Database string `yaml:"Database"`
}
type RedisConf struct {
	Host string `yaml:"Host"`
	Port int    `yaml:"Port"`
	DB   int    `yaml:"Pb"`
}
type EsConf struct {
	Host string `json:"Host" yaml:"Host"`
	Port int    `json:"Port" yaml:"Port"`
}
